package com.koo.modules.api.service;


import com.koo.framework.anno.ApiMethod;

import java.util.List;
import java.util.Map;

public interface DownloadApiService {
    /**
     * 下载商品统一接口
     * @param paramMap 中必须参数:storeId--storeId(String), <br>
     * lastDownloadDate--startDate(String), <br>
     * lastDownloadProductId--productId(String), <br>
     * click--click(Boolean) <br>
     * @return
     */
    @ApiMethod("api.third.data.get.downloadProductData")
    public Map<String, Object> downloadProductData(Map<String, Object> paramMap);
    
    /**
     * 下载出库单统一接口
     * @param paramMap 中必须参数:storeId--storeId(String), <br>
     * laseDownloadDate--startDate(String), <br>
     * @return
     */
    @ApiMethod("api.third.data.get.downloadOutOrderData")
    public Map<String, Object> downloadOutOrderData(Map<String, Object> paramMap);
    
    /**
     * 商品和出库单下载数量查询
     * @param paramMap 中必须参数:tableName--tableName(String), <br>
     * storeId--storeId(String), <br>
     * lastDownloadDate--startDate(String) <br>
     * @return
     */
    @ApiMethod("api.third.data.get.findDownloadCount")
    public Map<String, Object> findDownloadCount(Map<String, Object> paramMap);
    
    /**
     * 根据门店id查询该门店绑定的企业前缀(已经启用的)
     * @param storeId
     * @return
     */
    public List<Map<String, Object>> listPrefixByStoreId(String storeId, boolean isProduct);
}
